<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加学生</title>
</head>
<body>
    <h1 style="margin-left: 670px">发布房源</h1>
    <a th:href="@{/index}" style="margin-left: 700px;margin-bottom: 5px">返回首页</a>
    <form th:action="@{/add}"  method="post">
        <table border="1" cellspacing="0" style="margin: auto">
            <tr>
                <td>学号：<input type="text" name="studentNo"></td>
            </tr>
            <tr>
                <td>姓名：<input type="text" name="studentName"></td>
            </tr>
            <tr>
                <td>地址：<input type="text" name="address"></td>
            </tr>
            <tr>
                <td>年龄：<input type="text" name="age"></td>
            </tr>
        </table>
        <input type="submit" value="提交" style="margin-left: 700px;margin-top: 10px">

        <a th:href="@{/add}">重置</a>
    </form>
</body>
</html>